
jQuery(document).ready(function() {	
	
    /*
     * 主背景图，可以为多个自动轮播
    */
	$('.banner-area').backstretch(
		[
         "images/backgrounds/page_01.jpg"
		//, "images/backgrounds/2.jpg"
		//, "images/backgrounds/3.jpg"
		], 
		{duration: 3000, fade: 750}
	);
	
	/**
	 * 跳转滑动
	 */
	$('a[href*=#]:not([href=#])').click(function() {
	    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
	      var target = $(this.hash);
	      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
	      if (target.length) {
	        $('html,body').animate({
	          scrollTop: target.offset().top
	        }, 1000);
	        return false;
	      }
	    }
	});
	
});
	